package com.ruoyi.blogs.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 笔记管理对象 bs_note
 *
 * @author ruoyi
 * @date 2022-11-01
 */
@ApiModel(value = "BsNote", description = "笔记实体")
public class BsNote extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 笔记id
     */
    @ApiModelProperty("id")
    private String id;

    /**
     * 分类id
     */
    @ApiModelProperty("分类组")
    private String groups;

    /**
     * 标题
     */
    @ApiModelProperty("标题")
    @Excel(name = "标题")
    private String title;

    /**
     * 浏览量
     */
    @ApiModelProperty("浏览量")
    @Excel(name = "浏览量")
    private Long pageViewNum;

    /**
     * 收藏
     */
    @ApiModelProperty("收藏")
    @Excel(name = "收藏")
    private Long collectNum;

    /**
     * 内容
     */
    @ApiModelProperty("内容")
    private String content;

    /**
     * 点赞数
     */
    @ApiModelProperty("点赞数")
    @Excel(name = "点赞数")
    private Long likeNum;

    /**
     * 作者id
     */
    @ApiModelProperty("作者id")
    private Long authorId;

    /**
     * 描述
     */
    @ApiModelProperty("描述")
    private String description;

    /**
     * 封面图片
     */
    @ApiModelProperty("封面图片")
    @Excel(name = "封面图片")
    private String coverPicture;

    /**
     * 状态
     */
    @ApiModelProperty("状态")
    @Excel(name = "状态")
    private Integer visible;

    /**
     * 是否官方推荐
     */
    @ApiModelProperty("是否官方推荐")
    @Excel(name = "是否官方推荐")
    private Integer isOfficialRecommend;

    /**
     * 是否热门
     */
    @ApiModelProperty("是否热门")
    @Excel(name = "是否热门")
    private Integer isHot;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    @Excel(name = "用户名")
    private String userName;

    /**
     * 方向id
     */
    @ApiModelProperty("方向id")
    @Excel(name = "方向id")
    private Integer directionId;

    /**
     * 是否首页
     */
    @ApiModelProperty("是否首页")
    @Excel(name = "是否首页")
    private Integer isHome;

    /** 笔记类型 */
    @ApiModelProperty("笔记类型")
    @Excel(name = "笔记类型")
    private Integer type;

    public Integer getIsHome() {
        return isHome;
    }

    public void setIsHome(Integer isHome) {
        this.isHome = isHome;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getGroups() {
        return groups;
    }

    public void setGroups(String groups) {
        this.groups = groups;
    }

    public Integer getDirectionId() {
        return directionId;
    }

    public void setDirectionId(Integer directionId) {
        this.directionId = directionId;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setPageViewNum(Long pageViewNum) {
        this.pageViewNum = pageViewNum;
    }

    public Long getPageViewNum() {
        return pageViewNum;
    }

    public void setCollectNum(Long collectNum) {
        this.collectNum = collectNum;
    }

    public Long getCollectNum() {
        return collectNum;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setLikeNum(Long likeNum) {
        this.likeNum = likeNum;
    }

    public Long getLikeNum() {
        return likeNum;
    }

    public void setAuthorId(Long authorId) {
        this.authorId = authorId;
    }

    public Long getAuthorId() {
        return authorId;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setCoverPicture(String coverPicture) {
        this.coverPicture = coverPicture;
    }

    public String getCoverPicture() {
        return coverPicture;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setIsOfficialRecommend(Integer isOfficialRecommend) {
        this.isOfficialRecommend = isOfficialRecommend;
    }

    public Integer getIsOfficialRecommend() {
        return isOfficialRecommend;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("groups", getGroups())
                .append("title", getTitle())
                .append("pageViewNum", getPageViewNum())
                .append("collectNum", getCollectNum())
                .append("content", getContent())
                .append("likeNum", getLikeNum())
                .append("authorId", getAuthorId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("description", getDescription())
                .append("coverPicture", getCoverPicture())
                .append("visible", getVisible())
                .append("isOfficialRecommend", getIsOfficialRecommend())
                .append("isHot", getIsHot())
                .append("userName", getUserName())
                .append("directionId", getDirectionId())
                .append("isHome", getIsHome())
                .toString();
    }
}
